#include "StdAfx.h"
#include "ShapeReps.h"

CShapeReps::CShapeReps()
{

}

CShapeReps::CShapeReps(const TopoDS_Shape& shape)
{
	m_hAisShape = new AIS_Shape(shape);
}

CShapeReps::~CShapeReps(void)
{
}

Handle(AIS_Shape) CShapeReps::GetAisShape(void) const
{
	return m_hAisShape;
}

bool CShapeReps::IsValid() const
{
	return !m_hAisShape.IsNull();
}

void CShapeReps::SetColor(COLOR_INDEX nColor)
{
	if(IsValid())
	{
		m_hAisShape->SetColor(nColor);
	}

}

void CShapeReps::SetTransparency(double dValue)
{
	if(IsValid())
	{
		m_hAisShape->SetTransparency(dValue);
	}

}
